package com.pmcc.cj.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pmcc.core.entity.UUIDEntity;
import com.pmcc.utils.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 轮播图
 * Created by tomas on 2020/9/21.
 */
@Entity
@Table(name = "cj_carousel")
public class CjCarousel extends UUIDEntity {
    @Column(name = "product_desc",length = 1000)
    private String productDesc;//商品介绍
    @Column(name = "product_image_desc",length = 1000)
    private String productImageDesc;//商品图文介绍
    @Column(name = "sequence")
    private Integer sequence;//排序
    @Column(name = "address")
    private String address;//图片地址
    @Column(name = "product_title")
    private String productTitle;//标题
    @Column(name = "create_time")
    private Date createTime;//创建时间
    @Column(name = "carousel_type")
    private Integer carouselType;//排序   0:首页  1:商城页  2:飞防页
    @Column(name = "del_flag")
    private Integer delFlag;//删除标记

    public Integer getCarouselType() {
        return carouselType;
    }

    public void setCarouselType(Integer carouselType) {
        this.carouselType = carouselType;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public String getProductImageDesc() {
        return productImageDesc;
    }

    public void setProductImageDesc(String productImageDesc) {
        this.productImageDesc = productImageDesc;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getProductTitle() {
        return productTitle;
    }

    public void setProductTitle(String productTitle) {
        this.productTitle = productTitle;
    }
    @JsonSerialize(using = DateTimeFormat.class)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
